<?php

class HiveAction extends BaseAction {

	private $hiveClient;
	protected $hiveQL;
	
    public function __construct($actionName, $cmd, $hiveClient) {
    	$this->hiveClient = $hiveClient;
   		parent::__construct($actionName, $cmd);       
    }

    public function execute(ezcWorkflowExecution $execution) {
    	$this->hiveQL = $this->cmd;
    	$this->cmd = $this->hiveClient . " -e \"{$this->cmd}\"";
 		return parent::execute($execution);
    }
    
    public function getHiveQL() {
    	return $this->hiveQL;
    }
    
}
